package com.yisu.auction.manager.core.mapper;

import com.yisu.auction.ewf.entity.Recharge;
import com.yisu.auction.manager.domain.request.memberPackage.RechargeRequest;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface RechargeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Recharge record);

    int insertSelective(Recharge record);

    Recharge selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Recharge record);

    int updateByPrimaryKey(Recharge record);

    /**
     * author:赵杰
     * Business Description : 分页获取会员信息
     * @param rechargeRequest 分页请求信息
     * @return 商品分类列表
     */
    List<Recharge> getRechargeListByPage(RechargeRequest rechargeRequest);

    /**
     * author:赵杰
     * Business Description : 获取今日充值金额
     * @return 商品分类列表
     */
    BigDecimal getTodayRechargeMoney(@Param("date") String date);
}